package com.coda.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 默写记录
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DictationSession implements Serializable {
    //主键
    private Integer id;
    //用户id
    private Integer userId;
    //默写单词数量
    private Integer totalWords;
    //答对数量
    private Integer correctCount;
    //开始时间
    @DateTimeFormat
    private LocalDateTime beginTime;
    //结束时间
    @DateTimeFormat
    private LocalDateTime endTime;
}
